package com.zh.web.base;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Api("分页响应结果")
@Data
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageApiResult<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "总记录数")
    private Long total;
    @ApiModelProperty(value = "当前页码")
    private Long pageNum;
    @ApiModelProperty(value = "每页记录数")
    private Long pageSize;
    @ApiModelProperty(value = "数据")
    private List<T> list;
}
